package online.exam.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "subject_bank")
public class SubjectBank {
    /**
     * 题目编号
     */
    @Id
    @Column(name = "subject_id")
    private String subjectId;

    /**
     * 题目名称
     */
    @Column(name = "subject_title")
    private String subjectTitle;

    /**
     * 题目类型
     */
    @Column(name = "subject_type")
    private Integer subjectType;

    /**
     * 所属科目
     */
    @Column(name = "subject_clazz")
    private String subjectClazz;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 选型内容
     */
    @Column(name = "subject_content")
    private String subjectContent;

    /**
     * 参考答案
     */
    @Column(name = "subject_answer")
    private String subjectAnswer;

    /**
     * 获取题目编号
     *
     * @return subject_id - 题目编号
     */
    public String getSubjectId() {
        return subjectId;
    }

    /**
     * 设置题目编号
     *
     * @param subjectId 题目编号
     */
    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    /**
     * 获取题目名称
     *
     * @return subject_title - 题目名称
     */
    public String getSubjectTitle() {
        return subjectTitle;
    }

    /**
     * 设置题目名称
     *
     * @param subjectTitle 题目名称
     */
    public void setSubjectTitle(String subjectTitle) {
        this.subjectTitle = subjectTitle;
    }

    /**
     * 获取题目类型
     *
     * @return subject_type - 题目类型
     */
    public Integer getSubjectType() {
        return subjectType;
    }

    /**
     * 设置题目类型
     *
     * @param subjectType 题目类型
     */
    public void setSubjectType(Integer subjectType) {
        this.subjectType = subjectType;
    }

    /**
     * 获取所属科目
     *
     * @return subject_clazz - 所属科目
     */
    public String getSubjectClazz() {
        return subjectClazz;
    }

    /**
     * 设置所属科目
     *
     * @param subjectClazz 所属科目
     */
    public void setSubjectClazz(String subjectClazz) {
        this.subjectClazz = subjectClazz;
    }

    /**
     * 获取创建人
     *
     * @return created_by - 创建人
     */
    public String getCreatedBy() {
        return createdBy;
    }

    /**
     * 设置创建人
     *
     * @param createdBy 创建人
     */
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * 获取创建时间
     *
     * @return created_time - 创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 设置创建时间
     *
     * @param createdTime 创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 获取选型内容
     *
     * @return subject_content - 选型内容
     */
    public String getSubjectContent() {
        return subjectContent;
    }

    /**
     * 设置选型内容
     *
     * @param subjectContent 选型内容
     */
    public void setSubjectContent(String subjectContent) {
        this.subjectContent = subjectContent;
    }

    /**
     * 获取参考答案
     *
     * @return subject_answer - 参考答案
     */
    public String getSubjectAnswer() {
        return subjectAnswer;
    }

    /**
     * 设置参考答案
     *
     * @param subjectAnswer 参考答案
     */
    public void setSubjectAnswer(String subjectAnswer) {
        this.subjectAnswer = subjectAnswer;
    }

    @Override
    public String toString() {
        return "SubjectBank{" +
                "subjectId='" + subjectId + '\'' +
                ", subjectTitle='" + subjectTitle + '\'' +
                ", subjectType=" + subjectType +
                ", subjectClazz='" + subjectClazz + '\'' +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", subjectContent='" + subjectContent + '\'' +
                ", subjectAnswer='" + subjectAnswer + '\'' +
                '}';
    }
}